/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package problemset3helper;

import java.util.ArrayList;

/**
 *
 * @author Chandan
 */
public class Tile {

    ArrayList<String> paths;
    char topPart;
    char rightPart;
    char bottomPart;
    char leftPart;
    String tileValue;
    int value;
    int m;
    int n;

    public void rotate() {
        char temp = leftPart;
        leftPart = bottomPart;
        bottomPart = rightPart;
        rightPart = topPart;
        topPart = temp;
    }

    public Tile(String data, int value, String tileValue, int m, int n) {
        this.paths = new ArrayList<>();
        this.topPart = data.charAt(0);
        this.rightPart = data.charAt(1);
        this.bottomPart = data.charAt(2);
        this.leftPart = data.charAt(3);
        this.tileValue = tileValue;
        this.value = value;
        this.m = m;
        this.n = n;
    }

    @Override
    public String toString() {
        return "T" + tileValue;
    }
}
